package cn.lixu.fallback;

import cn.lixu.domain.Users;
import com.sun.deploy.security.BlockedException;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ProjectName: springcloud-alibaba-parent-homework
 * @Package: cn.lixu.controller.fallback
 * @ClassName: UserFallBack
 * @Author: LIXU
 * @Description: 服务限流降级类
 * @Date: 2022/08/24 0024 23:52:48
 * @Version: 1.0
 **/

public class UsersFallBackUtils {
    public static Users getById(@PathVariable("id") Long id) {
        return new Users(-1L, "罗顶天,你在干嘛？", "叫你不要点，你是不是不听话");
    }
}
